<template>
  <mt-swipe :auto="4000">
    <mt-swipe-item v-for="item in carouselItems" :key="item.id">
      <img :src="`${APIBaseURL}${item.img}`" />
    </mt-swipe-item>
  </mt-swipe>
</template>

<script>
export default {
  props: ['carouselItems'],
  computed:{
    APIBaseURL(){
      return process.env.VUE_APP_BASE_API
    }
  }
  
}
</script>

<style lang="scss" scoped>
.mint-swipe {
  height: 200px;
  color: #fff;
  .mint-swipe-items-wrap {
    .mint-swipe-item {
      text-align: center;
    }
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
